package com.example.game;

import java.util.Comparator;
import java.util.PriorityQueue;

import android.graphics.Point;

public class computer {
	public int playerId;
	public int[][]neighbours;
	public Player playerOne,playerTwo;
	computer(int playerId){
		this.playerId=playerId;
	}
	public Move move(){
		Analyzer analyzer =new Analyzer(playerOne,playerTwo);
		analyzer.iniDecisions(playerId);
		if(analyzer.decision.size()>0)
		{
			return analyzer.decision.element();
		}
		return null; 
	}
	public int eat(){
		Analyzer analyzer =new Analyzer(playerOne,playerTwo);
		analyzer.iniEat(playerId);
		if(analyzer.eat.size()>0)
		{
			return analyzer.eat.element().x;
		}		
		return -1;
	}
	public int push(){
		Analyzer analyzer =new Analyzer(playerOne,playerTwo);
		analyzer.iniPush(playerId);
		if(analyzer.push.size()>0)
		{
			return analyzer.push.element().x;
		}		
		return -1;
	}
}
